<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.util.*" errorPage="/error.jsp" %>
<%@ page import="com.beans.log.*" %>
<%@ page import="com.business.log.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%  String action=request.getRequestURI();
     action=action.replace(".xhtml","");
    action=action.replace("/","");
	if(action.equals("login")){
	%>
	<jsp:forward page="/user/login.jsp" />
	<% 
}else if(action.equals("main")){
	%>
	<jsp:forward page="/main.jsp" />
	<% 
	}else if(action.equals("playlist")){
	%>
	<jsp:forward page="/playlist.jsp" />
	<% 
	}
		else if(action.equals("reg")){
	%>
	<jsp:forward page="/user/register.jsp" />
	<% 
	}
	else if(action.equals("logout")){
	%>
	<jsp:forward page="/user/logout.jsp" />
	<% 
	}else if(action.equals("index")){
	%>
	<jsp:forward page="/default.jsp" />
	<%
		} else if(action.equals("showlist")){
	%>
	<jsp:forward page="/user/showlist.jsp" />
	<%
		} else if(action.equals("addlog")){
	%>
	<jsp:forward page="/user/addlog.jsp" />
	<%
		}  else if(action.equals("link")){
	%>
	<jsp:forward page="/user/linklist.jsp" />
	<%
		} else if(action.equals("addlink")){
	%>
	<jsp:forward page="/user/addlink.jsp" />
	<%
		} else if(action.equals("photo")){
	%>
	<jsp:forward page="/user/photolist.jsp" />
	<%
		} else if(action.equals("addphoto")){
	%>
	<jsp:forward page="/user/addphoto.jsp" />
	<%
		} else if(action.equals("addphototype")){
	%>
	<jsp:forward page="/user/addphototype.jsp" />
	<%
		} else if(action.equals("music")){
	%>
	<jsp:forward page="/user/musiclist.jsp" />
	<%
		} else if(action.equals("addmusic")){
	%>
	<jsp:forward page="/user/addmusic.jsp" />
	<%
		} else if(action.equals("addmusictype")){
	%>
	<jsp:forward page="/user/addmusictype.jsp" />
	<%
		} else if(action.equals("favor")){
	%>
	<jsp:forward page="/user/favorlist.jsp" />
	<%
		} else if(action.equals("user")){
	%>
	<jsp:forward page="/user/edituser.jsp" />
	<%
		} else if(action.equals("addlogtype")){
	%>
	<jsp:forward page="/user/addlogtype.jsp" />
	<%
		} else {
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<font color=red>路径不存在</font>
</body>
<%
}
%>
</html>